package com.yjd.comm.enums;

/**
 * <b>description</b>：流水账关联对象类型来源 <br>
 * <b>time</b>：2015-8-7下午3:32:05 <br>
 * <b>author</b>： ready likun_557@163.com
 */
public enum FundsDataRefTableEnum {
	/*
	 * 这样好看点,不要弄乱了
	 */
	YJD_BORROW(1, "标的表"), 
	YJD_ARREARS_FORM(2, "借款人还款报表"), 
	YJD_INVEST(3, "投资记录表"), 
	YJD_PROFIT_FORM(4, "投资人回款报表"), 
	YJD_CREDITOR_TRANSFER(5, "债权转让记录"), 
	YJD_FUNDS_FINANCIAL_DATA(6, "理财金返现记录"), 
	YJD_ORDER(7, "在线充值记录表"), 
	YJD_FUNDS_REWARD(8, "红包表"), 
	YJD_VOLUME(9, "代金券表"), 
	YJD_ORDER_OTHER(10, "线下充值记录表"), 
	YJD_IDCARD_DATA(11, "实名认证记录表"),
	YJD_RETURN_CASH(12,"返现金发放记录表"),
	YJD_CASCH(13,"提现记录表"),
	YJD_LCK_ORDER(14,"理财卡订单表"),
	YJD_EXTENSION_FUNDS(15,"人人推广"),
	YJD_PROMOTION_FUNDS(16,"邀请奖励"),
	YJD_USER(17,"医界贷账户表"),
	YJD_WAL_PROFIT(18,"小钱包收益表"),
	WAL_LCK_TRANS(19,"小钱包理财卡转入订单表"),
	YJD_WAL_ACCOUNT(20,"小钱包账户表"),
	YJD_WAL_RECHARGE(21,"小钱包第三方资金转入记录"),
	YJD_WAL_PROJECT_FLOW(22, " 小钱包项目表"),
	YJD_WAL_FLOW_DATA(23, " 小钱包债权关联表"),
	YJD_WAL_EXPERIENCE_PROFIT(24,"小钱包体验金收益表"),
	YJD_GOLD_FLOW_DATA(25, "医信宝债权关联表"),
	YJD_GOLD_PROJECT_FLOW(26, "医信宝中间账户持有债权表"),
	YJD_CASH_REWARD(27,"现金红包表");
	
	private FundsDataRefTableEnum(Integer value, String description) {
		this.value = value;
		this.description = description;
	}

	/**
	 * 值
	 */
	private Integer value;
	/**
	 * 描述
	 */
	private String description;

	public Integer getValue() {
		return value;
	}

	public String getDescription() {
		return description;
	}

	public static FundsDataRefTableEnum get(Integer value) {
		FundsDataRefTableEnum[] vs = FundsDataRefTableEnum.values();
		for (FundsDataRefTableEnum v : vs) {
			if (v.getValue().equals(value)) {
				return v;
			}
		}
		return null;
	}

	public static String getDesc(Integer value) {
		FundsDataRefTableEnum v = get(value);
		return v != null ? v.getDescription() : null;
	}
}
